package com.garbage.dao;

import com.garbage.pojo.User;
import org.apache.ibatis.annotations.Param;


/**
 * Author: abin
 * Date: 2021-04-23
 * Description:
 */

public interface UserMapper {
    /**
     * 通过用户名密码查询用户
     * @param username
     * @return
     */
    User findUser(@Param("username") String username, @Param("password") String password);

    /**
     * 添加用户
     * @param user
     * @return
     */
    int addUser(User user);

    /**
     * 删除用户
     * @param user
     * @return
     */
    int deleteUser(User user);

    /**
     * 修改用户
     * @param user
     * @return
     */
    int updateUser(User user);

}
